derivative using quotient rule